#-*- coding: utf-8 -*-
#-------------------------------------------------------------------------------
# Number：     013
# Name:        Python return value
# Author:      SUMMVING
# Email:       summving@gmail.com
# Created:     2013/08/16  20:55
# Copyright:   (c) SUMMVING 2013
# Licence:     GPLv3
#-------------------------------------------------------------------------------

def main(a,b):
    print "welcome"
    return a + b                   #返回a+b

print main(12,13)                  #输出两数之和
zip = main(2,3)                    #函数赋予zip
print zip                          #输出5

"""多个return"""
def fun(x,y):
    if x > y:
       return "x > y"
    if x < y:
       return "x < y"
    if x == y:                     #这里可以省去if x == y会更简便
       return "x == y"
print fun(11,22)
print fun(22,11)                   #要分清 return 与 print 的区别
print fun(11,11)                   #return并没有在解析窗口输出数值




